<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
    <style></style>
  </head>
  <body>
    <script src="common.js"></script>
    <div>
      <h1>《春娇与志明2》主角</h1>
      <ul class="ul" id="ul"></ul>
    </div>
    <script>
      var ul = my$("ul");
      var list=ul.children;
    //   console.log(list);
      var datas = ["杨幂", "余文乐", "杨千嬅", "黄晓明", "郑伊健"];
      for (var i = 0; i < datas.length; i++) {
        var li = document.createElement("li");
        ul.appendChild(li);
        li.innerText = datas[i];
      }
    </script>
  </body>
</html>
